<div class="loginbox">
	<div class="loginbox_form">
	<?php if($sf_user->getAttribute('messagesend')) { ?>
	<div class='notice'>
	<?php echo $sf_user->getAttribute('messagesend'); $sf_user->setAttribute('messagesend', NULL) ?>
	 </div>
	<?php } ?>

		<?php if(!$sf_user->isAuthenticated()): ?>
			<form action="<?php echo url_for('@sf_guard_signin')?>" class="form" method="post">
				<div class="holder">
					<div class="items">
						<div class="item">
							<label for="login">Логин</label>
							<span class="txt"><?php echo $form['username'] ?></span>
						</div>
						<div class="item">
							<label for="pass">Пароль</label>
							<span class="txt"><?php echo $form['password'] ?></span>
						</div>
					</div>
				</div>
				<div class="row">
					<input type="submit" class="submit" value="Вход" />
					<?php echo $form['remember']->render(array('class'=>'check','id'=>'check')) ?>
					<?php echo $form['_csrf_token']->render();?>
					<label for="check">Запомнить меня</label>
				</div>
				<div class="row">
					<?php echo link_to('Вспомнить пароль','@sf_guard_password')?>
					<?php echo link_to('Регистрация','@registration_link')?>
				</div>
				<div class="row">
					<?php //echo link_to('Регистрация это — просто. Вам сюда','@sf_guard_register',"class='btn-register'")?>
				</div>
			</form>
		<?php else:?>
			Добро пожаловать<br/> <?php echo $sf_user;?>!<br/>
			<hr class="hr_divider"/>
			<ul class="account_menu">
				<li class="myaccount"><?php echo link_to('Мой кабинет', 'account/index')?></li>
				<li class="logout"><?php echo link_to('Выйти', 'sf_guard_signout')?></li>
			</ul>
			<div style='clear:both'>
			</div>
		<?php endif;?>
	</div>
	<div class="loginbox_bottom"></div>
</div>